#include"comm.hpp"
#include<unistd.h>
int main()
{
    Init init(1);
    // key_t k =getkey();
    // cout<<"client key: "<<toHex(k)<<endl;

    // int shmid=getShm(k,gsize);
    // cout<<"client shmid :"<<toHex(shmid)<<endl;
    
    // char*start=attachShm(shmid);
    
    // sleep(15);
    // detachShm(start);
    char *start=init.Getstart();
    char c='A';
    while(c<='Z')
    {
        start[c-'A']=c;
        c++;
        start[c-'A']='\0';
        sleep(1);
    }
    return 0;
}